package com.aiti.lulian.workflow;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

@Data
public class Node {
    @JsonProperty("id")
    private String id;
    @JsonProperty("name")
    private String name;

    // userTask, startEvent, endEvent等
    @JsonProperty("type")
    private String type;
    // USER, ROLE
    @JsonProperty("assigneeType")
    private String assigneeType;
    @JsonProperty("assigneeId")
    private String assigneeId;
    @JsonProperty("next")
    private String next;
    @JsonProperty("canReject")
    private Boolean canReject;
    private List<RejectRule> rejectRules;


    public Node() {}

    public Node(String id, String name, String type) {
        this.id = id;
        this.name = name;
        this.type = type;
    }


}
